<html><head><title>Summary statistics of an LGS object</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="Rchm.css">
</head>
<body>

<table width="100%"><tr><td>summaryLGS(LGS)</td><td align="right">R Documentation</td></tr></table><object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e">
<param name="keyword" value="R:   summaryLGS">
<param name="keyword" value=" Summary statistics of an LGS object">
</object>


<h2>Summary statistics of an LGS object</h2>


<h3>Description</h3>

<p>
<code>summaryLGS</code> provides summary statistics about the allele ratio and populations of an LGS object.
</p>


<h3>Usage</h3>

<pre>
summaryLGS(lgs= NULL)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>lgs</code></td>
<td>
An object of class <code>LGS</code>, typically the output of <code><a href="simLGS.html">simLGS</a></code>. </td></tr>
</table>

<h3>Value</h3>

<p>
A list with components:
</p>
<table summary="R argblock">
<tr valign="top"><td><code>LGS</code></td>
<td>
Summary statistics for <code>lgs$ChrMap$LGS</code> using <code><a onclick="findlink('base', 'summary.html')" style="text-decoration: underline; color: blue; cursor: hand">summary</a></code>. </td></tr>
<tr valign="top"><td><code>pops</code></td>
<td>
A dataframe with four columns and five rows containing summaries about the populations crossed and selected.
First two columns summaries the two parental strains (<code>Parent1, Parent2</code>), the second two columns (<code>Progeny, SelProgeny</code>) relate to the progeny population before and after selection, respectively.
For each population in the four colummns, rows report: <code>nSize</code>, the total count of individuals; <code>nhaplotypes</code>, the count of distinct haplotypes found; <code>nParent1, nParent2, nRecombinants</code>, count of parental haplotypes and recombinant haplotypes found in the progeny populations (therefore only for <code>Progeny</code> and <code>SelProgeny</code>).</td></tr>
<tr valign="top"><td><code>popFreq</code></td>
<td>
A dataframe with two columns and three rows describing the progeny populations in terms of frequency of haplotypes. 
Columns are <code>Progeny</code> and <code>SelProgeny</code> as above. 
Rows are <code>nParent1, nParent2, nRecombinants</code> with the same information as above but expressed in terms of frequency.</td></tr>
</table>

<h3>Author(s)</h3>

<p>
Dario Beraldi &lt;<a href="mailto:dario.beraldi@ed.ac.uk">dario.beraldi@ed.ac.uk</a>&gt;
</p>


<h3>Examples</h3>

<pre>
data(pcMap)
lgs1&lt;- simLGS(offspring= 100, map=pcMap, scenario= "EqualFitness99", gen.dist="phy")
summaryLGS(lgs1)

lgs2&lt;- simLGS(offspring= 100, map=pcMap, scenario= "HybridAdvantage80", gen.dist="phy")
summaryLGS(lgs2)
</pre>

<script Language="JScript">
function findlink(pkg, fn) {
var Y, link;
Y = location.href.lastIndexOf("\\") + 1;
link = location.href.substring(0, Y);
link = link + "../../" + pkg + "/chtml/" + pkg + ".chm::/" + fn;
location.href = link;
}
</script>


<hr><div align="center">[Package <em>LGS</em> version 0.9 <a href="00Index.html">Index]</a></div>

</body></html>
